home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3008 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: mail2news.demon.co.uk!hpl3sn03.cern.ch
  2. From: Dan Pop <danpop@mail.cern.ch>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Segmentation fault at return statement. Can't figure out ....
  5. Date: Thu, 25 Jan 1996 13:53:52 +0100
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <9601251253.AA14631@dxmint.cern.ch>
  8. References: <4dm2n1$egk@murphy.servtech.com> <4dop08$kdi@bcfreenet.seflin.lib.fl.us> <9601201829.AA02117@dxmint.cern.ch> <4e63p2$ljg@bcfreenet.seflin.lib.fl.us>
  9. X-NNTP-Posting-Host: hpl3sn03.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11. X-Mail2News-Path: relay-1.mail.demon.net!dxmint.cern.ch!hpl3sn03.cern.ch
  12.  
  13. z007400b@bcfreenet.seflin.lib.fl.us (Ralph Silverman) writes:
  14.  
  15. >Dan Pop (danpop@mail.cern.ch) wrote:
  16. >: z007400b@bcfreenet.seflin.lib.fl.us (Ralph Silverman) writes:
  17. >
  18. >: >    'test'
  19. >: >    is likely to be
  20. >: >    a command of
  21. >: >    the
  22. >: >        operating system
  23. >
  24. >: So what?  There's no possible conflict/interaction between a function
  25. >: name in a C program and the name of an OS command.
  26. >
  27. >: >    1)    look it up.
  28. >: >    2)    rename yours.
  29. >:                 ^^^^^^^^^^^^^
  30. >: Why???
  31. >
  32. >        is it not possible
  33. >        that the link order of
  34. >        test.c etc.
  35. >    resulted in an executable named
  36. >    test.exe,
  37. >    test.com
  38. >    or such?
  39.  
  40. On some systems, this may be possible, however, on the only system where
  41. "test" is a command (that I know of), this is not possible. 
  42.  
  43. No matter the name of the resulting executable, this cannot explain the
  44. behaviour observed by the original poster.
  45.  
  46. Dan
  47. -- 
  48. Dan Pop
  49. CERN, CN Division
  50. Email: danpop@mail.cern.ch 
  51. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  52.